import java.text.*;
public class Product {
	// the instance variables
	private String code;
	private String Description;
	private double Price;
	//the constructor
	public Product()
	{
		code="";
		Description="";
		Price=0;
	}
	//the set and get methods for the code variable
	public void setCode(String code)
	{
		this.code=code;
		
	}
	public String getCode() 
{
		return code;
		}
	public void setDescription(String Description)
	{
		this.Description=Description;
	}
	public String getDescription()
	{
		return Description;
	}
	
	public void setPrice(double Price)
	{
		this.Price=Price;
	}
	public double getPrice()
	{
		return Price;
	}
	//a custiringSto method for the price variable
	public String getFormattedPrice()
	{
		NumberFormat currency=NumberFormat.getCurrencyInstance();
		return currency.format(Price);
	}
}
